import selfNaxios from 'utils/ajaxConfig.js';

export function getWorkAdjustProgress (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/projectInTeam/list',
      params: param
    }, success, error)
}

export function getWorkAdjustProject (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/schedule/queryByProjectId',
      params: param
    }, success, error)
}

export function searchAdjustHistory (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/schedule/history',
      params: param
    }, success, error)
}

export function onSearchHistoryList (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/workflow/getApprovalRecord',
      params: param
    }, success, error)
}

export function getUserBaseDataUrl (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/user/me',
      params: param
    }, success, error)
}

export function comparePlanAdjust (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/schedule/compare',
      params: param
    }, success, error)
}
